package com.dvj.demo.security.dao;

import com.dvj.demo.security.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * UserDao
 *
 * @author Dvj
 * @date 2021/6/8 18:14
 */
public interface UserDao extends JpaRepository<User, Long> {

    /**
     * 根据username查找用户
     *
     * @param username
     * @return
     */
    User findUserByUsername(String username);
}
